﻿<!doctype html>
<html>
<head>
<meta charset='utf-8'>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;' name='viewport' />
<title>简历详情表</title>
<script src="//cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
  <link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <script src="js/plugins/sweetalert/sweetalert.min.js"></script>
    	  <!-- 全局js -->
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>



    <!-- ECharts -->
    <script src="js/plugins/echarts/echarts-all.js"></script>

    <!-- 自定义js -->
    <script src="js/content.js?v=1.0.0"></script>


    <!-- ECharts demo data -->
    <script src="js/demo/echarts-demo.js"></script>
<style type='text/css'> 
body,table{ 
font-size:12px; 
} 
table{ 
table-layout:fixed; 
empty-cells:show; 
border-collapse: collapse; 
margin:0 auto; 
} 
td{ 
height:30px; 
} 
h1,h2,h3{ 
font-size:12px; 
margin:0; 
padding:0; 
} 
.table{ 
border:1px solid #cad9ea; 
color:#666; 
} 
.table th { 
background-repeat:repeat-x; 
height:30px; 
} 
.table td,.table th{ 
border:1px solid #cad9ea; 
padding:0 1em 0; 
	text-align: center
} 
.table tr.alter{ 
background-color:#f5fafe; 
} 
</style> 


</head>
<body>

<style type="text/css" media=print>
.noprint{display : none }
</style>





	<script type="text/javascript">
$(document).ready(function(){
  $("#btnPrint").click(function(){
    $("#form").hide(0);
	  window.print();
	  $("#form").show(2000);
  });
  
});

function preview(oper)       
{
if (oper < 10)
{
bdhtml=window.document.body.innerHTML;//获取当前页的html代码
sprnstr="<!--startprint"+oper+"-->";//设置打印开始区域
eprnstr="<!--endprint"+oper+"-->";//设置打印结束区域
prnhtml=bdhtml.substring(bdhtml.indexOf(sprnstr)+18); //从开始代码向后取html

prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));//从结束代码向前取html
window.document.body.innerHTML=prnhtml;
window.print();
window.document.body.innerHTML=bdhtml;
} else {
window.print();
}
}
</script>

<?php
	error_reporting(0);
	session_start();
		if(time() - $_SESSION['time'] >1800){
		unset($_SESSION['username']);
unset($_SESSION['passcode']);
unset($_SESSION['userflag']);
		unset($_SESSION['time']);
		
	}
if(isset($_SESSION['username']))
{
$id=$_GET['id'];
$_SESSION['time']+600;
	$con = mysql_connect ('localhost','root','root');
            @mysql_select_db('jianli', $con); 
            mysql_query('SET NAMES UTF8');
 $result = mysql_query("SELECT * FROM LJ_data WHERE id  LIKE '$id'  limit 0,1");
	while($row = mysql_fetch_array($result)) 	{
		$id=$row['id'];
		$opid=$row['opid'];
	 $ypgw=$row['ypgw'];
	$xm=$row['xm'];
$xb=$row['xb'];
	$zzmm=$row['zzmm'];
	$csny=$row['csny'];
	$mz=$row['mz'];
	$jg=$row['jg'];
	$hyzt=$row['hyzt'];
	$sg=$row['sg'];
	$tz=$row['tz'];
	$sfzhm=$row['sfzhm'];
	$hkszd=$row['hkszd'];
	$xljxw=$row['xljxw'];
	$bysj=$row['bysj'];
	$xxjzy=$row['xxjzy'];
	$txdz=$row['txdz'];
	$yb=$row['yb'];
	$qwsr=$row['qwsr'];
	$zdqwsr=$row['zdqwsr'];
	$qsxm=$row['qsxm'];
$jl1qzny=$row['1qzny'];
$jl1byyx=$row['1byyx'];
$jl1sxzy=$row['1sxzy'];
$jl1xwxl=$row['1xwxl'];
$jl1pyfs=$row['1pyfs'];
$jl2qzny=$row['2qzny'];
$jl2byyx=$row['2byyx'];
$jl2sxzy=$row['2sxzy'];
$jl2xwxl=$row['2xwxl'];
$jl2pyfs=$row['2pyfs'];
$jl3qzny=$row['3qzny'];
$jl3byyx=$row['3byyx'];
$jl3sxzy=$row['3sxzy'];
$jl3xwxl=$row['3xwxl'];
$jl3pyfs=$row['3pyfs'];
$jl1qzqy1=$row['1qzqy1'];
$jl1zyjl=$row['1zyjl'];
$jl1cghjx=$row['1cghjx'];
$jl1zmr=$row['1zmr'];
$jl2qzqy1=$row['2qzqy1'];
$jl2zyjl=$row['2zyjl'];
$jl2cghjx=$row['2cghjx'];
$jl2zmr=$row['2zmr'];
$jl3qzqy1=$row['3qzqy1'];
$jl3zyjl=$row['3zyjl'];
$jl3cghjx=$row['3cghjx'];
$jl3zmr=$row['3zmr'];
$jl1xm=$row['1xm'];
$jl1gx=$row['1gx'];
$jl1sr=$row['1sr'];
$jl1dw=$row['1dw'];
$jl1zw=$row['1zw'];
$jl1dh=$row['1dh'];
$jl2xm=$row['2xm'];
$jl2gx=$row['2gx'];
$jl2sr=$row['2sr'];
$jl2dw=$row['2dw'];
$jl2zw=$row['2zw'];
$jl2dh=$row['2dh'];
$jl3xm=$row['3xm'];
$jl3gx=$row['3gx'];
$jl3sr=$row['3sr'];
$jl3dw=$row['3dw'];
$jl3zw=$row['3zw'];
$jl3dh=$row['3dh'];
		$riqi=$row['riqi'];
		$pingyu=$row['pingyu'];
		$zhuangtai=$row['zhuangtai'];
		$time=date('Y/m/d',$row['addtime']);
echo "<table border='1' class='table' ><th colspan='7'><div style='float: left;
'>应聘岗位：$ypgw</div><div style='float:right;'>申请日期：$time</div></th>
	<tr><th style='padding: 0 0.5em 0;' rowspan='8'>基<br>本<br>情<br>况</th></tr>
	<tr>
	<td>姓名：</td><td>$xm</td>
	<td>性别：</td><td>$xb</td>
	<td>民族：</td><td>$mz</td>
	</tr>
<tr>
<td>出生年月：</td><td>$csny</td>
	<td>籍贯：</td><td>$jg</td>
	<td>婚姻状态：</td><td>$hyzt</td>
	</tr>
	<tr>
	<td>身高（cm）：</td><td>$sg</td>
	<td>体重（kg）：</td><td>$tz</td>
	<td>政治面貌：</td><td>$zzmm</td>
	</tr>
	<tr>
	<td>身份证号：</td><td colspan='2'>$sfzhm</td>
	<td>户口所在地：</td><td colspan='2'>$hkszd</td>
	</tr>
		<tr>
	<td>学位及学历：</td><td >$xljxw</td>
	<td>毕业时间：</td><td >$bysj</td>
	<td>学校及专业：</td><td>$xxjzy</td>
	</tr>
			<tr>
	<td>通讯地址：</td><td colspan='5'>$txdz</td>
	</tr>
	<tr>
	<td>邮编：</td><td >$yb</td>
	<td>期望收入：</td><td >$qwsr</td>
	<td>最低期望收入：</td><td >$zdqwsr</td>
	</tr>
	<tr><th style='padding: 0 0.5em 0;' rowspan='5'>教<br>育<br>经<br>历</th></tr>
	<th colspan='2'>起止年月</th><th>毕业院校</th><th>所学专业</th><th>学历/学位</th><th>培养方式</th>
	<tr><td colspan='2'>$jl1qzny</td><td>$jl1byyx</td><td>$jl1sxzy</td><td>$jl1xwxl</td><td>$jl1pyfs</td></tr>
	<tr><td colspan='2'>$jl2qzny</td><td>$jl2byyx</td><td>$jl2sxzy</td><td>$jl2xwxl</td><td>$jl2pyfs</td></tr>
	<tr><td colspan='2'>$jl3qzny</td><td>$jl3byyx</td><td>$jl3sxzy</td><td>$jl3xwxl</td><td>$jl3pyfs</td></tr>
	
	<tr><th style='padding: 0 0.5em 0;' rowspan='5'>工<br>作<br>经<br>历</th></tr>
	<th colspan='2'>起止年月</th><th colspan='2'>主要经历</th><th>成果获奖项</th><th>证明人</th>
	<tr><td colspan='2'>$jl1qzqy1</td><td colspan='2'>$jl1zyjl</td><td>$jl1cghjx</td><td>$jl1zmr</td></tr>
	<tr><td colspan='2'>$jl2qzqy1</td><td colspan='2'>$jl2zyjl</td><td>$jl2cghjx</td><td>$jl2zmr</td></tr>
	<tr><td colspan='2'>$jl3qzqy1</td><td colspan='2'>$jl3zyjl</td><td>$jl3cghjx</td><td>$jl3zmr</td></tr>
	
	<tr><th style='padding: 0 0.5em 0;' rowspan='5'>家<br>庭<br>情<br>况</th></tr>
	<th >姓名</th><th >关系</th><th>出生年月</th><th>工作单位</th><th>职务/岗位</th><th>联系电话</th>
	<tr><td >$jl1xm</td><td >$jl1gx</td><td>$jl1sr</td><td>$jl1dw</td><td>$jl1zw</td><td>$jl1dh</td></tr>
	<tr><td >$jl2xm</td><td >$jl2gx</td><td>$jl2sr</td><td>$jl2dw</td><td>$jl2zw</td><td>$jl2dh</td></tr>
	<tr><td >$jl3xm</td><td >$jl3gx</td><td>$jl3sr</td><td>$jl3dw</td><td>$jl3zw</td><td>$jl3dh</td></tr>
	<tr><th style='padding: 0 0.5em 0;' rowspan='5'>诚<br>信<br>承<br>诺</th></tr>
	
	<tr><td colspan='7' rowspan='5'>
	<pre>
	声明：1.本人承诺保证所填写的信息真实，并自愿承担因隐瞒事实而带来的包括解聘在内的一切后果。
	      2.本人身份证、毕业证、职称证书、职业技能等级证书、获奖证书等均为真实有效证件。</pre><div style='
    float: right;
    margin: 30px;
    margin-right: 100px;
'>本人签名：</div></td></tr>
	
	</table>";	
		echo  '<form method="post" id="form" action="main_api.php">
	<div style="text-align: center"><br>人事评语：<br><br><textarea style="width: 640px;height: 100px" placeholder="人事评语" name="pingyu">'.$pingyu.'</textarea><br><br>入职日期<input name="riqi" type="text" value="'.$riqi.'"> <br><br>审核状态：<select name="zhuangtai"><option value="'.$zhuangtai.'">'.$zhuangtai.'</option>';		
		if($zhuangtai=='通过')
		{
			echo '<option value="未通过">未通过</option>';
		}elseif($zhuangtai=='审核中'){
			echo '<option value="通过">通过</option>';
			echo '<option value="未通过">未通过</option>';
		}else{
			echo '<option value="通过">通过</option>';
		}
		echo 	'</select>   <input id="btnPrint" type="button" value="打印"  /><input type="text" style="display: none" name="id" value="'.$id.'">  
        <input type="submit" value="保 存" >';
		
		
} 
}
else
{
   exit( ' <script>$(document).ready(function () { swal({title: 
	"抱歉，你还未登录哦！",
                    type: "error"
					
                }, function() {location.href="login.php";});
          
        });
    </script>');
}
	
	?><br>
	
	
	

			
	
<br>
    <br>
     程序开发：@刘继鹏Beta
	</div>
	</form>
	<!--
项目名称：在线简历填写+公众号简历状态实时推送查询系统
微信消息接口开发：@刘继鹏Beta
程序开发：@刘继鹏Beta
前端设计:@刘继鹏Beta
MYSQL：@刘继鹏Beta
开发日期：2017/02/13
	-->
</body>
</html>
